]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Fix switch animation between non-adjacent workspaces
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 31 Jul 2018 04:37:20 +0000 (06:37 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 31 Jul 2018 04:51:35 +0000 (06:51 +0200)
commit91da3789bc12fab060c96b4e098b599d7380c578
treebf9832f0eaa9f81c6843226b695571d290fe47d0
parent2991f9f102df216f031fd774d36473d1671e78d0
windowManager: Fix switch animation between non-adjacent workspaces

Commit e5c95b910d refactored the workspace animation to also handle
animations that involve all surrounding workspaces, but due to an
ill-advised review comment (guess whose) it broke the animation
for non-neighboring workspaces.

Update the code to handle correctly whether in a given direction:
 - we have the target workspace of a given index
 - we have a neighboring workspace
 - we don't need to animate anything

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/182
js/ui/windowManager.js